package com.springproject.core;

import java.io.File;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EntryPoint {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

    String home = System.getenv("MY_HOME");
	ApplicationContext context=new ClassPathXmlApplicationContext(home+File.separator+"beans.xml"); 
    HelloWorld helloWord=(HelloWorld)context.getBean("helloworld");
    String message = helloWord.getMessage();
    System.out.println(message);
    System.out.println("-------------");
	}

}
